package com.dengyuanke.upms.domain.feign;

import com.dengyuanke.common.core.result.R;
import com.dengyuanke.upms.domain.dto.UserInfo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: dyk
 * Create time: 2019-07-31  15:52
 */
@Component
@Slf4j
public class RemoteUserServiceFallback implements RemoteUserService{
    @Override
    public R<UserInfo> info(String username, String from) {
        log.error("fegin获取用户信息失败");
        return R.success(new UserInfo());
    }
}
